package code;

public class minNumberInRotateArray {
        public int Solution(int [] array) {
            if(array.length<1){
                return 0;
            }
            else {
                for(int i=0;i<array.length-1;i++){
                    if(array[i+1]>array[i]){
                        return array[i+1];
                    }
                }
                return array[array.length];
            }
        }
}
